import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let eventlog = {
	path: '/eventlog',
	component: Layout,
	name: '事件日志',
	meta: {
		title: i18n.t('router.Eventlog'),
		icon: 'dashboard',
	  	isPermiss:'/management/eventlog'
	},
	children: [
		{
			path: '/eventlog/system',
			component: () => import('@/views/eventlog/system/index.vue'),
			name: '系统日志',
			meta: { title: i18n.t('router.systemlog') },
	  		isPermiss:'/management/machine.machine_error_code'
		},
		{
			path: '/eventlog/goods',
			component: () => import('@/views/eventlog/goods/index.vue'),
			name: '商品变化',
			meta: { title: i18n.t('router.changes') },
	  		isPermiss:'/management/goods.goods_change'
		},
		{
			path: '/eventlog/nottaken',
			component: () => import('@/views/eventlog/nottaken/index.vue'),
			name: '未取商品',
			meta: { title: i18n.t('router.unclaimed') },
	  		isPermiss:'/management/sale.sale_orders_unclaimed'
		},
		{
			path: '/eventlog/user',
			component: () => import('@/views/eventlog/user/index.vue'),
			name: '用户事件',
			meta: { title: i18n.t('router.UserEvents') },
	  		isPermiss:'/management/auth.auth_manager_log'
		}
	]
}

export default eventlog;